#!/bin/bash

if [ -z "$1" ]; then
	echo "Usage: $0 /module/resource/{id}"
	echo "Usage: $0 /module/resource?params"
	echo "Reads resource"
	exit 0
fi
path=$1

curl -v http://localhost:8080/tlnk$path
# curl -X POST --data-binary @$file -H "Content-Type: application/xml" -H "Authorization: Bearer $token" http://server.unitedtickets.ee:8080/sync$path

